﻿using System.Web.Mvc;
using Orchard.Themes;
using SuperClassic.Services;
using SuperClassic.ViewModels;

namespace SuperClassic.Controllers {
    public class HomeController : Controller {
        private readonly ISettingsService _settingsService;

        public HomeController(ISettingsService settingsService) {
            _settingsService = settingsService;
        }

        [Themed(false)]
        public ActionResult Site() {
            var settings = _settingsService.GetSettings();

            var viewModel = new SettingsViewModel {
                FontFamily = settings.FontFamily,
                AlternateCss = settings.AlternateCss
            };

            return View(viewModel);
        }
    }
}